﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ProductCategory.aspx.cs" Inherits="SES.CMS.ProductCategory" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="content">
        <div class="contentright">
            <div class="newproduct">
                <div class="heading">
                    <div class="heading1">
                        <h2 class="heading2">
                            <span>Tìm kiếm</span></h2>
                        <span class="plus">+</span>
                    </div>
                </div>
                <!--Search Form -->
                <div id="search-product">
                    <asp:DropDownList ID="dropCateProduct" CssClass="cateProduct" runat="server" />
                    <asp:DropDownList ID="dropOrigin" CssClass="cateProduct" runat="server" />
                    <div class="search-input-wrap">
                        <div class="search-input-left">
                            <asp:TextBox ID="txtFromPrice" CssClass="textPrice num" placeholder="Tìm theo giá từ:"
                                runat="server" />
                        </div>
                        <div class="search-input-right">
                            <asp:TextBox ID="txtToPrice" CssClass="textPrice num" placeholder="Tìm theo giá đến:"
                                runat="server" />
                        </div>
                    </div>
                    <div class="search-input-wrap">
                        <asp:Button ID="btnSearchs" CssClass="btnSearchs" runat="server" Text="Tìm kiếm"
                            OnClick="btnSearchs_Click" />
                    </div>
                </div>
                <!--End #search-product-->
                <div class="heading">
                    <div class="heading1">
                        <h2 class="heading2">
                            <asp:Label runat="server" ID="lblCateName"></asp:Label></h2>
                        <span class="plus">+</span>
                    </div>
                </div>
                <div class="foo-news">
                    <asp:Repeater runat="server" ID="rptNewProduct" OnItemCommand="rptNewProduct_ItemDataBound">
                        <ItemTemplate>
                            <div class="product">
                                <div class="product-inner">
                                    <a class="a-hover" href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                        title='<%#Eval("ProductTitle") %>'>
                                        <img src='<%#SES.CMS.Ultility.TopbikeDomain()%>/Media/Thumbnail/<%#Eval("Thumbnail")%>'
                                            alt='<%#Eval("ProductTitle") %>' title='<%#Eval("ProductTitle") %>' />
                                    </a>
                                    <div class="product-detail-x">
                                        <div class="product-no-promotion">
                                            <p class="hidden p-title">
                                                <%#Eval("ProductTitle") %></p>
                                            <p class="hidden p-price">
                                                <%#SES.CMS.Ultility.GetPrice(Eval("ProductID")) %>
                                        </div>
                                        <div class="action-product">
                                            <div class="product-button">
                                                <a href='/<%#FriendlyUrl(Eval("ProductCategoryTitle").ToString()) %>/<%#FriendlyUrl(Eval("ProductTitle").ToString())%>-<%#Eval("ProductID")%>'
                                                    title='<%#Eval("ProductTitle") %>' class="detail-product">Chi tiết</a>
                                                <input type="button" id="btnCart" class="h-btn-cart" onclick="updateCart(<%#Eval("ProductID")%>,1); return false;" />
                                            </div>
                                        </div>
                                    </div>
                                    <span style='display: <%#Boolean.Parse(Eval("IsPromotion").ToString())==true?"block":"none"%> !important'
                                        class="promotion-product-span">KM</span>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
                <div style="width: 100%; float: left; margin-top: 10px;">
                    <div style="float: left;">
                        <asp:ImageButton ID="cmdPrev" Visible="false" OnClick="cmdPrev_Click" runat="server"
                            ImageUrl="~/images/prevpage.png" /></div>
                    <div style="float: right;">
                        <asp:ImageButton ID="cmdNext" Visible="false" OnClick="cmdNext_Click" runat="server"
                            ImageUrl="~/images/nextpage.png" /></div>
                </div>
                <%-- <div class="collection">
                    <cp:CollectionPager LabelText="" FirstText="&amp;nbsp;&amp;nbsp;<<" BackText="< &amp;nbsp;"
                        LastText=">>" NextText=">" ShowFirstLast="True" ControlCssClass="collectionpager"
                        PagingMode="PostBack" runat="server" BackNextLinkSeparator="" BackNextLocation="Split"
                        PageNumbersDisplay="Numbers" ResultsLocation="None" BackNextDisplay="HyperLinks"
                        ID="CollectionPager1" BackNextButtonStyle="" BackNextStyle="margin-left:5px;"
                        ControlStyle="" PageNumbersSeparator="&amp;nbsp;">
                    </cp:CollectionPager>
                    <div class="collectPage">
                    </div>
                </div>--%>
                <div class="clear">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
